package com.juc.executorService.executorService2;

import java.util.concurrent.Callable;

public class MyCallableB implements Callable<String>{

	@Override
	public String call() throws Exception {
		System.out.println(" MyCallableB "+ Thread.currentThread().getName() + "   " + " being " + System.currentTimeMillis());
		for (int i = 0; i < 193456; i++) {
			String newString = new String();
			Math.random();
			Math.random();
			Math.random();
			Math.random();
			Math.random();
			System.out.println(" MyCallableB 在运行中= " + (i+1));
		}
		if(1==1) {
			System.out.println("xxxxxxxxxxxxx = 中断了" );
			throw new NullPointerException();
		}
		System.out.println(" MyCallableB_End " + Thread.currentThread().getName() + "   " + "end " + System.currentTimeMillis());
		return "returnB";
	}

}
